/*
 * 
 */
package com.yuanmei.stockeyes.charts;

import cn.limc.androidcharts.event.IDisplayCursorListener;

import android.graphics.PointF;
import android.text.Spanned;
import android.view.View;
import android.view.View.OnTouchListener;

import java.util.Hashtable;
import java.util.List;
import java.util.Map;

public interface ITalibChart {

    public boolean reloadData(int dataLen,
                              float[] openPrices,
                              float[] highPrices,
                              float[] lowPrices,
                              float[] closePrices,
                              float[] volumes,
                              float[] amounts,
                              int[]   dates);

    public String  getTaIndexShortName();
    public String  getTaIndexParms();
    public Spanned getTaIndexDetail();

    public int  getTaIndexBegin();
    public int  getTaIndexNumber();

    public void setDisplayFrom(int displayFrom);
    public void setDisplayNumber(int displayNumber);

    public void setDisplayCrossXOnTouch(boolean displayCrossXOnTouch);

    public void setOnTouchListener(OnTouchListener l);
    public void setOnDisplayCursorListener(IDisplayCursorListener l);

    public PointF getTouchPoint();
    public float  getValidMiddleY();
    public void setTouchPoint(PointF touchPoint);
    public void postInvalidate();

    public View getChartView();

    public static final String ITaParamNameKey  = "TaParamName";
    public static final String ITaParamValueKey = "TaParamValue";
    public List<Map<String, Object>> getTaParamsList();
    public void setTaParams(Hashtable<String, Integer> inParamMaps);
}
